<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="centre/manage/include :: header"></head>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="memberForm">
                        <input type="hidden" th:value="${id}" id="id" name="id">
                        <table class="table table-bordered table-condensed">
                            <tbody>
                            <tr>
                                <th class="required" style="text-align: right;">是否可设置订单折扣</th>
                                <td>
                                    <label class="radio-inline">
                                        <input type="radio" name="discountStatus" value="1"
                                               th:checked="*{member.discountStatus== 1}"/>是
                                    </label>
                                    &nbsp;&nbsp;&nbsp;&nbsp;
                                    <label class="radio-inline">
                                        <input type="radio" name="discountStatus" value="0"
                                               th:checked="*{member.discountStatus== 0}"/>否
                                    </label>
                                </td>
                            </tr>
                            <tr>
                                <th class="required" style="text-align: right;">折扣上限</th>
                                <td>
                                    <input type="text" name="discount" id="discount"
                                           class="form-control" value="" th:value="${member.discount}"/>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                        <div class="form-group text-center">
                            <div class="col-sm-8 col-sm-offset-2">
                                <button type="submit" class="btn btn-primary"><i class="fa fa-check"></i>提交</button>
                                <div class="btn btn-danger" onclick="closeDow()"><i class="fa fa-remove"></i> 关闭</div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

</div>
<div th:include="centre/manage/include::footer"></div>
<script type="text/javascript" src="/js/appjs/member/manage/setDiscount.js"></script>
<script type="text/javascript">
    function closeDow() {
        var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
        parent.layer.close(index);
    }
</script>
</body>
</html>
